package com.woniu.sale.service.impl;

import com.woniu.sale.entity.PurRequestorder;
import com.woniu.sale.entity.PurRequestorderdetail;
import com.woniu.sale.mapper.PurRequestorderDao;
import com.woniu.sale.mapper.PurRequestorderdetailDao;
import com.woniu.sale.service.PurRequestOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class PurRequestOrderServiceImpl implements PurRequestOrderService {
    @Autowired
    private PurRequestorderdetailDao requestorderdetailDao;
    @Autowired
    private PurRequestorderDao requestorderDao;
    @Override
    public List<PurRequestorderdetail> selShopSale(Integer supply, String shop) {
        return requestorderdetailDao.selShopSale(supply,shop);
    }

    @Override
    public List<PurRequestorder> selPurReqByShopOrSupp(Integer supply, String shop) {
        return requestorderDao.selPurReqByShopOrSupp(supply,shop);
    }
}
